package com.youshang520i.springcommonmiddleware.mq.rabbitmq.listener;

import com.youshang520i.springcommonmiddleware.mq.rabbitmq.po.Mail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author youshang
 */
@Component
public class DirectListener2 {
    @RabbitListener(queues = "directqueue2")
    public void displayMail(Mail mail) throws Exception {
        System.out.println("directqueue1队列监听器2号收到消息"+mail);
    }
}
